package com.lwj.liwanjia.view.activity.personal;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.lwj.liwanjia.R;
import com.lwj.liwanjia.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class EditCompleteActivity extends BaseActivity {

    @BindView(R.id.tv_left)
    TextView tvLeft;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.iv_icon)
    ImageView ivIcon;
    @BindView(R.id.tv_complete)
    TextView tvComplete;

    private String title;

    @Override
    protected void initView() {
        tvLeft.setVisibility(View.VISIBLE);
        title = getIntent().getStringExtra("title");
        if (title.equals("换绑手机")) {
            tvComplete.setText("验证成功");
        } else if (title.equals("设置支付密码")) {
            tvComplete.setText("设置成功");
        }
        tvTitle.setText(title);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_edit_complete;
    }

    @OnClick({R.id.tv_left, R.id.tv_sure})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_left:
                finish();
                break;
            case R.id.tv_sure:
                finish();
                break;
        }
    }
}
